import { defHttp } from "@/utils/http";

// ERP 药品库存预警API
export const drugInvtAlertApi = {
	// 获得药品库存预警分页
	drugInvtAlertList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-invt-alert/page`, params });
	},
	// 新增药品库存预警
	drugInvtAlertCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-invt-alert/create`, data });
	},

	// 修改药品库存预警
	drugInvtAlertUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-invt-alert/update`, data });
	},

	// 删除药品库存预警
	drugInvtAlertDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-invt-alert/delete?id=` + id });
	}
};
